FROM swr.cn-east-2.myhuaweicloud.com/cloud-develop/java8-ttf-dejavu
VOLUME /tmp
COPY /target/erp.jar app.jar
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Duser.timezone=GMT+08 -jar /app.jar" ]
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone